import request from '../utils/request'

export function createAppointment(data) {
  return request({
    url: '/api/appointments',
    method: 'post',
    data
  })
}

export function getMyAppointments() {
  return request({
    url: '/api/appointments/my',
    method: 'get'
  })
}